﻿using System;
using System.Collections.Generic;
using System.Linq;
using SqlSugar;
namespace Chat_Model
{
    /// <summary>
    /// 用户好友关系表
    ///</summary>
    [SugarTable("lar_users_friends")]
    public class LarUsersFriends
    {
        /// <summary>
        /// 关系ID 
        ///</summary>
        [SugarColumn(ColumnName = "id", IsPrimaryKey = true, IsIdentity = true)]
        public string Id { get; set; }
        /// <summary>
        /// 用户id 
        /// 默认值: 0
        ///</summary>
        [SugarColumn(ColumnName = "user_id")]
        public int UserId { get; set; }
        /// <summary>
        /// 好友id 
        /// 默认值: 0
        ///</summary>
        [SugarColumn(ColumnName = "friend_id")]
        public int FriendId { get; set; }
        /// <summary>
        /// 好友的备注 
        /// 默认值: 
        ///</summary>
        [SugarColumn(ColumnName = "remark")]
        public string Remark { get; set; }
        /// <summary>
        /// 好友状态 [0:否;1:是] 
        /// 默认值: 0
        ///</summary>
        [SugarColumn(ColumnName = "status")]
        public int Status { get; set; }
        /// <summary>
        /// 更新时间 
        /// 默认值: CURRENT_TIMESTAMP
        ///</summary>
        [SugarColumn(ColumnName = "updated_at")]
        public DateTime UpdatedAt { get; set; } = DateTime.Now;
        /// <summary>
        /// 创建时间 
        /// 默认值: CURRENT_TIMESTAMP
        ///</summary>
        [SugarColumn(ColumnName = "created_at")]
        public DateTime? CreatedAt { get; set; } = DateTime.Now;
    }
}
